package Class.senior.demo06;

import java.util.Random;

// 多线程测试类
public class ThreadClassTest {
    public static void main(String[] args) {
        ThreadClass threadClass1 = new ThreadClass();
        threadClass1.start(); // 开启多线程
        ThreadClass threadClass2 = new ThreadClass();
        threadClass2.start();// 开启多线程
        for (int i = 0; i < 10; i++) {
            System.out.println("实体类中的for循环" + i);
        }
        // 随机数
        Random random = new Random();
        System.out.println(random.nextDouble(0, 100));
    }
}
